From: Jasper St. Pierre Date: Mon, 26 Nov 2012 19:47:59 +0000 (-0500) Subject: grabHelper: Treat the current grabbed actor as a grabbed actor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5281 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=27ffad21480d49682d6278d11bda67a1fd296d14;p=gnome-shell.git grabHelper: Treat the current grabbed actor as a grabbed actor This should be obvious, but I guess it wasn't necessary for the message tray case. https://bugzilla.gnome.org/show_bug.cgi?id=689109 --- diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 4104c8d56..aacce4334 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -77,9 +77,12 @@ const GrabHelper = new Lang.Class({ }, _isWithinGrabbedActor: function(actor) { + let currentActor = this.currentGrab.actor; while (actor) { if (this._actors.indexOf(actor) != -1) return true; + if (actor == currentActor) + return true; actor = actor.get_parent(); } return false;